<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./js/vue.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <button @click="getevent">事件1</button>
        <a href="" @click.prevent="getaevent">链接</a>
    </div>
</body>
<script>
    const vm = new Vue({
        methods: {
            getevent(e) {
                console.log(e);
                console.log("事件1被点击了哦")
                console.log(e.path[0])
            },
            getaevent(e) {
                console.log(e)
                console.log('超链接被点击了哦')
                console.log(e.path[0])
            }
        }
    }).$mount("#app")
</script>

</html>